package org.example.myleet.p508;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[1]".equals(JsonUtils.toJson(solution.findFrequentTreeSum(Parser.parse(new Integer[]{1})))));
        Assert.isTrue("[2,-3,4]".equals(JsonUtils.toJson(solution.findFrequentTreeSum(Parser.parse(new Integer[]{5,2,-3})))));
        Assert.isTrue("[2]".equals(JsonUtils.toJson(solution.findFrequentTreeSum(Parser.parse(new Integer[]{5,2,-5})))));
    }
}
